using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
using System.Net;

namespace ParkClient
{
    class TCPConfig
    {
        public TcpClient tcpC(int port)
        {
            TcpClient tcpClient = new TcpClient();
            IPAddress ipaddress = IPAddress.Parse("121.42.40.180");
            try
            {
                tcpClient.Connect(ipaddress, port);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            return tcpClient;
        }
    }
}
